﻿var Taxonomy = function () {
    var guid = '';
    var title = '';
    var field = {};
    var picker = {};

    var setTaxonomypickerObject = function (id, name) {
        return {
            "Id": id,
            "Name": name
        };

    };

    return {
        Id: guid,
        Name: title,
        SPField: field,
        TaxonomypickerObject: picker,
        SetTaxonomypickerObject: setTaxonomypickerObject
    };
};